package com.ys.service.storage;

import com.alibaba.fastjson.JSONArray;
import com.ys.entity.storage.TccAllocate;
import com.ys.vo.R;

import java.util.List;
import java.util.Map;

public interface TccDistributeService {
	
	R add(String bid, Integer type, String detailArr, Long menuId, String vgsbm,String vbz) throws Exception;
	
	R edit(String bid, String detailArr, Long menuId, String vgsbm,String vbz) throws Exception;
	
	R deleteTrue(Long id) throws Exception;
	
	R flowPass(Long id, String loginUserId) throws Exception;
	
	R flowRefuse(Long id, String reason, String loginUserId) throws Exception;

	R flowInit(Long id, String reason, String loginUserId) throws Exception;
	
	void afterFlowFinish(Long id) throws Exception;
	
	/*
	 * 获取自动分配的JA数组
	 */
	JSONArray getAutoDetailJA(String bidAllocate) throws Exception;


	//获取子列表数据
	List<Map<String, Object>> getItemList(String bid) throws Exception;

	//自动分配
	void automaticAllocation(TccAllocate tccAllocate);

}
